home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / man / man-part1 / cat2 / xfpoly.2 < prev    next >
Text File  |  1999-09-16  |  544b  |  67 lines

  1.  
  2.  
  3.  
  4. xfpoly(2)                      Scilab Function                      xfpoly(2)
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. NAME
  12.   xfpoly - fill a polygon
  13.  
  14. CALLING SEQUENCE
  15.   []=xfpoly(xv,yv,[close])
  16.  
  17. PARAMETERS
  18.  
  19.   xv, yv    : two vectors of size n (the points of the polygon)
  20.  
  21.   close     : an integer
  22.  
  23. DESCRIPTION
  24.   Fills a polygon. If close is equal to 1 a point is added to the polyline
  25.    xv,yv to define a polygon.
  26.  
  27. EXAMPLE
  28.   x=sin(2*%pi*(0:5)/5);
  29.   y=cos(2*%pi*(0:5)/5);
  30.   plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
  31.   xfpoly(x,y)
  32.  
  33. AUTHOR
  34.   J.Ph.C.
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.